package com.app.ytong.bean;

import com.alibaba.fastjson.annotation.JSONField;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Generated;

import java.util.ArrayList;

@Entity(indexes = {@Index(value = "tid,tna", unique = true)})
public class GoodsTypeListData extends BasisBean {

    /**
     *  {
     *       "tid": "1485870325336141825",
     *       "aid": "2",
     *       "tna": "贡眉",
     *       "path": null,
     *       "uno": "admin"
     *     },
     *     {
     *       "tid": "1485870294365401089",
     *       "aid": "2",
     *       "tna": "银针",
     *       "path": null,
     *       "uno": "admin"
     *     },
     *     {
     *       "tid": "1485870268331356161",
     *       "aid": "2",
     *       "tna": "寿眉",
     *       "path": null,
     *       "uno": "admin"
     *     },
     *     {
     *       "tid": "1485870237499027458",
     *       "aid": "2",
     *       "tna": "牡丹",
     *       "path": null,
     *       "uno": "admin"
     *     }
     */
    private static final long serialVersionUID = 1L;


    @JSONField(name = "tid")
    private String tid;
    @JSONField(name = "aid")
    private String aid;
    @JSONField(name = "tna")
    private String tna;
    @JSONField(name = "tno")
    private String tno;             //分类编码
    @JSONField(name = "path")
    private String path;
    @JSONField(name = "uno")
    private String uno;



    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }
    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    public String getTna() {
        return tna;
    }

    public void setTna(String tna) {
        this.tna = tna;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getUno() {
        return uno;
    }

    public void setUno(String uno) {
        this.uno = uno;
    }



    @JSONField(serialize = false)
    private boolean isSelect = false;

    @JSONField(name = "tra")
    private String tra = "0";


    @JSONField(serialize = false)
    private String editTra;

    @Generated(hash = 1048882091)
    public GoodsTypeListData(String tid, String aid, String tna, String tno,
            String path, String uno, boolean isSelect, String tra, String editTra) {
        this.tid = tid;
        this.aid = aid;
        this.tna = tna;
        this.tno = tno;
        this.path = path;
        this.uno = uno;
        this.isSelect = isSelect;
        this.tra = tra;
        this.editTra = editTra;
    }

    @Generated(hash = 711015609)
    public GoodsTypeListData() {
    }
    @JSONField(serialize = false)
    public boolean isSelect() {
        return isSelect;
    }
    @JSONField(serialize = false)
    public void setSelect(boolean select) {
        isSelect = select;
    }

    public boolean getIsSelect() {
        return this.isSelect;
    }

    public void setIsSelect(boolean isSelect) {
        this.isSelect = isSelect;
    }

    @JSONField(serialize = false)
    public String getTra() {
        return tra;
    }
    @JSONField(serialize = false)
    public void setTra(String tra) {
        this.tra = tra;
    }

    @JSONField(serialize = false)
    public String getEditTra() {
        return editTra;
    }
    @JSONField(serialize = false)
    public void setEditTra(String editTra) {
        this.editTra = editTra;
    }
}
